FROM java:openjdk-8

RUN cd /usr/local && wget http://dl.mycat.io/1.6.6.1/Mycat-server-1.6.6.1-release-20181031195535-linux.tar.gz \
    && tar -zxf Mycat-server-1.6.6.1-release-20181031195535-linux.tar.gz \
    && rm -f Mycat-server-1.6.6.1-release-20181031195535-linux.tar.gz

ENTRYPOINT ["/usr/local/mycat/bin/mycat","console"]
